package com.yanqu.road.server.manger.activity.commonteam.activitytypehandler.handler;

import com.alibaba.fastjson.JSONObject;
import com.yanqu.road.entity.activity.ActivityConfig;
import com.yanqu.road.entity.activity.ActivityInfo;
import com.yanqu.road.entity.activity.commonteam.CommonTeamConfigData;
import com.yanqu.road.entity.enums.eSystemId;
import com.yanqu.road.logic.bussiness.servercenter.ActivityBussiness;
import com.yanqu.road.logic.config.GameConfig;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.sonhai.SonHaiActivityModule;
import com.yanqu.road.server.manger.activity.commonteam.activitytypehandler.CommonTeamActivityTypeStrategy;
import com.yanqu.road.server.manger.config.SystemOpenMgr;
import com.yanqu.road.utils.date.DateHelper;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 山海伏兽策略
 */
public class CommonTeamSonHaiStrategy implements CommonTeamActivityTypeStrategy {

    /**
     * 判断系统是否解锁
     * @param player
     * @return
     */
    @Override
    public boolean checkSystemUnlock(GamePlayer player) {
        //判断系统是否解锁
        return SystemOpenMgr.systemOpen(player, eSystemId.SonHai.getValue());
    }

    /**
     * 获取战力
     * @return
     */
    @Override
    public long getPower(GamePlayer player, int activityId) {
        //前30门客战力
        return player.getModule(SonHaiActivityModule.class).getPower(activityId);
    }
}
